<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增用户')" />
    <script th:src="@{/ruoyi/js/jquery.cookie.js}"></script>
</head>
<body>
<div class="main-content">
    <form id="form-user-add" class="form-horizontal">
        <div class="row">
            <div class="form-group" id="ypdx_id">
                <div class="radio check-box"  style="margin-left: 50px">
                    <label>
                        <input type="radio" value="1" name="a" checked=""><i></i>机械硬盘</label>
                </div>
                <div class="radio check-box">
                    <label>
                        <input type="radio" value="2" name="a"> <i></i>固态硬盘</label>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="form-group">
                <div class="modal-footer" style="height:0px">
                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-white" id="sb_save_btn" onclick="savesb()">保存
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:src="@{/ruoyi/js/jquery.cookie.js}"></script>
<script type="text/javascript">
    function savesb(){
        var op=$('#ypdx_id input[name="a"]:checked ').val()
        $.ajax({
            url:"/nc/sbyplx/getyplx/"+op,
            type:"get",
            success:function (data) {

            }
        })
        // window.location.href = "/nc/sbxxb/index?op="+op
    }
</script>
</body>
</html>